<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>后台管理中心</title>
{$system_css}
        {$system_js}
<script type="text/javascript">
            $(function(){
                
                $("#myform").validate({
                    rules: {
                        name: "required" 
                    },
                    messages: {
                        name: "名称不能为空"
                    }
                });
            })
        </script>
</head>
<body>
{include file="message.html"}
<div class="pad-10">
  <div class="common-form">
    <form name="myform" action="#" method="post" id="myform" enctype="MULTIPART/FORM-DATA" >
      <fieldset>
        <legend>基本信息</legend>
        <table width="100%" class="table_form">
          <tr>
            <td width="80"  class="red">导航名称</td>
            <td><input type="text" name="name"  class="input-text" id="name" size="50" value="{$data.name}">
              </input></td>
          </tr>
          <tr>
            <td width="80"  class="red">导航类型</td>
            <td><select name="type">
                <option value="home" {if $data.type == "home"}selected="selected"{/if}>首页</option>
                <option value="ucenter" {if $data.type == "ucenter"}selected="selected"{/if}>用户中心</option>
              </select></td>
          </tr>
          <tr>
            <td width="80"  class="red">链接地址</td>
            <td><input type="text" name="url"  class="input-text" id="url" size="60" value="{$data.url}">
              </input></td>
          </tr>
          <tr>
            <td>排序</td>
            <td><input type="text" name="position"  class="input-text" size="10" value="{$data.position}">
              </input></td>
          </tr>
          <tr>
            <td> 是否显示 </td>
            <td><label style="width:88px">
                <input type="radio" value="1" {if $data.active == 1}checked="checked"{/if} name="active">
                是 </label>
              <label style="width:88px">
                <input type="radio" value="0"   name="active" {if $data.active == 0}checked="checked"{/if}>
                否 </label></td>
          </tr>
          <tr align="center">
            <td colspan="2"><input type="submit" value="提交" name="dosubmit" class="button"></td>
          </tr>
        </table>
      </fieldset>
    </form>
  </div>
</div>
</body>
</html>